package com.wu.rabbitmq.utils;

import java.util.concurrent.TimeUnit;

/**
 * @program: RabbitMQ-Study
 * @author: 吴磊
 * @create: 2021-12-14 15:13
 */
public class SleepUtils {
    public static void sleep(int second) {
        try {
//            Thread.sleep(1000L * second);
            TimeUnit.SECONDS.sleep(second);
        } catch (InterruptedException _ignored) {
            Thread.currentThread().interrupt();
        }
    }
}
